import api from "../common/apiRequest"
/**
 * api 传参说明
 * @returns {Promise<unknown>}
 * @param params
 */
// 测试接入的接口

//  应用中心登录
// export const getApps = (params) => {
//   return api({
//     url: '/txksh/kosinManage/rest/apphome/login',
//     method: 'post',
//     data: params
//   })
// }
export const getApps = (params) => {
  return api({
    url: '/auth/app/login',
    method: 'post',
    data: params
  })
}
//  单点登录加解密
export const getDecrypt = (params) => {
  return api({
    url: '/auth/decrypt',
    method: 'post',
    data: params
  })
}
// 获取用户信息
export const getLoginUserInfo = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/getLoginUserInfo',
    method: 'post',
    data: params
  })
}
// i国网 现场巡检登录
export const getLogin = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/login',
    method: 'post',
    data: params
  })
}
// i国网 运维审批登录
export const getPermissions = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/authorize/getPermissions',
    method: 'post',
    data: params
  })
}
// 首页----工单完成情况
export const getTaskCompletionCount = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/homePage/task_completion_count',
    method: 'post',
    data: params
  })
}
// 首页----工单概况
export const getOverviewData = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/homePage/taskOverview',
    method: 'post',
    data: params
  })
}
// 首页----批次下拉框
export const getTaskBatch = (params) => {
  return api({
    url: '/kosinManage/rest/api/homePage/task_batch',
    method: 'post',
    data: params
  })
}
// 首页----工单进度监控
export const getTaskProgressCount = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/homePage/task_progress_count',
    method: 'post',
    data: params
  })
}
// 计划工单领取列表
export const getReceiveTaskList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/receiveTask/receiveTaskList',
    method: 'post',
    data: params
  })
}
// 计划工单领取（按钮） / 计划工单分配
export const getTaskAllo = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskMian/taskAllo',
    method: 'post',
    data: params
  })
}
// 计划工单监控（我领取的）
export const getTaskListByReceive = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/taskListByReceive',
    method: 'post',
    data: params
  })
}
// 工单监控--筛选条件中的单位列表
export const getOrgSelectList = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/generic/orgSelectList',
    method: 'post',
    data: params
  })
}
// 计划工单监控 回退
export const getUpdateTask = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/updateTask',
    method: 'post',
    data: params
  })
}
// 计划工单监控-完工
export const updateTaskComplete = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/updateTaskState',
    method: 'post',
    data: params
  })
}
// 计划工单详情 / 待办工单详情（计划工单）
export const getTaskDetails = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/taskDetails',
    method: 'post',
    data: params
  })
}
// 巡视设备列表
export const getTaskNeList = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/task_ne_list',
    method: 'post',
    data: params
  })
}
// 巡视设备详情
export const getEquDetails = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskCommEqu/details',
    method: 'post',
    data: params
  })
}
// 通信电源详情 已完成/未完成 已巡视/未巡视
export const getPowDetails = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskCommPow/details',
    method: 'post',
    data: params
  })
}
// 待办工单（我待办的）
export const getTaskListByTodo = (params) => {
  return api({
    url:'/txksh/kosinManage/rest/api/taskMian/taskListByTodo',
    method: 'post',
    data: params
  })
}
/**=================待办工单==========================*/
export const todoTaskApi = {
  // 可选设备类型
  techTypeList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/radioList",
      method: "POST",
      data: params
    })
  },
  // 可选设备归属
  equLevelList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/radioList",
      method: "POST",
      data: params
    })
  },
  // 新增设备
  addEquipment: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/add",
      method: "post",
      data: params
    });
  },
  // 通信设备列表
  communicationEquipmentList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/list",
      method: "post",
      data: params,
    })
  },
  // 设备详情接口
  equipemntDetail: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/details",
      method: "POST",
      data: params,
    })
  },
  // 通信电源详情接口
  powerDetail: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommPow/details",
      method: "POST",
      data: params,
    })
  },
  // 信息核对一致
  checkInfoSuccess: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/checkInfoSuccess",
      method: "POST",
      data: params,
    })
  },
  // 信息核对认定设备不存在
  checkInfoNotFound: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/checkInfoNotFound",
      method: "POST",
      data: params
    })
  },
  // 通信电源 信息核对设备不存在
  infomationNotFound: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommPow/checkInfoNotFound",
      method: "POST",
      data: params
    })
  },
  // 新增和完善(通信设备)时，所有下拉（除站点外）options获取  通信电源
  selectList_equipment: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommEqu/selectList",
      method: "POST",
      data: params
    })
  },
  selectList_power: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskCommPow/selectList",
      method: "POST",
      data: params
    })
  },
  // 新增和完善（光缆）时，下拉options获取
  selectList_Optical: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/generic/selectList",
      method: "POST",
      data: params
    })
  },
  // 新增光缆保存(弃用，原因为有文件上传，需要formdata，之前封装的formdata暂未能调通)
  addOpticalSave: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/insertOpticalcable",
      method: "POST",
      data: params
    })
  },
  // 通信光缆列表
  fiberList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/fiberList",
      method: "POST",
      data: params
    });
  },
  // 通信光缆巡视-光缆信息
  fiberExamineMsg: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/fiber_examine_msg",
      method: "POST",
      data: params
    });
  },
  // 查看对端光缆台账
  frontFiberMsg: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/front_fiber_msg",
      method: "POST",
      data: params
    });
  },
  // 光缆核查保存-一致/不存在
  fiberExamine: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/fiber_examine",
      method: "POST",
      data: params
    })
  },
  // 光缆信息完善
  updateDtAppTaskDetOpt: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/opticalcable/updateDtAppTaskDetOpt",
      method: "POST",
      data: params
    })
  },
  // 单纤芯核查-核查信息
  lineMsg: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/lineMsg",
      method: "POST",
      data: params
    })
  },
  // 选择配对纤芯
  lineMatch: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/line_Match",
      method: "POST",
      data: params
    })
  },
  // 纤芯核查保存（一致）
  lineExamUpdate: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/line_exam_update",
      method: "POST",
      data: params
    })
  },
  // 获取纤芯对端信息（对端纤芯已核查且核查状态为一致或不存在）
  frontLineMsg: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/front_line_msg",
      method: "POST",
      data: params
    })
  },
  // 获取纤芯对端信息（对端纤芯已核查且核查状态更新）
  frontLineMsgUp: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/front_line_msg_up",
      method: "POST",
      data: params
    })
  },
  // 纤芯信息完善的选择下拉列表
  getOpticalSelectList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/line_perfect_dropDown",
      method: 'post',
      data: params
    })
  },
  // 纤芯核查保存成功-继续核查
  continueExamine: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/continueExamine",
      method: "POST",
      data: params
    })
  },
  // 纤芯详情
  lineDetailes: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/lineDetailes",
      method: "POST",
      data: params
    })
  },
  // 完善纤芯信息页面的回填接口
  fiberDetail: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/lineMessage",
      method: "POST",
      data: params
    })
  },
  // 对纤芯进行光路匹配
  lineExamPerfect: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/fibercore/line_exam_perfect",
      method: "POST",
      data: params
    })
  },  // 对纤芯进行光路匹配
  updateTaskDetState: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskMian/updateTaskDetState",
      method: "POST",
      data: params
    })
  },
}
// 我完成的----已办工单
export const taskListByAccomplish = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskMian/taskListByAccomplish',
    method: 'post',
    data: params
  })
}
/**=================计划工单==========================*/
export const patrolTaskApi = {
  // 计划工单监控（我领取的）
  taskReceive: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskMian/taskListByReceive",
      method: "post",
      data: params
    });
  },
  // 巡视设备列表
  deviceList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskMian/task_ne_list",
      method: "post",
      data: params
    });
  },
  // 计划工单-回退
  updateTask: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskMian/updateTask",
      method: "post",
      data: params
    });
  },
  // 计划工单详情
  taskDetails: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/taskMian/taskDetails",
      method: "post",
      data: params
    });
  },
  // 计划工单领取列表
  receiveTaskList: (params) => {
    return api({
      url: "/txksh/kosinManage/rest/api/receiveTask/receiveTaskList",
      method: "post",
      data: params
    });
  },
}

// 选择人员
export const selectLwOrgList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectLwOrgList',
    method: 'post',
    data: params
  })
}
export const selectLwOrgListTow = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/authorize/selectLwOrgListTow',
    method: 'post',
    data: params
  })
}
// 名称模糊查询人员信息
export const selectUserListByName = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectUserListByName',
    method: 'post',
    data: params
  })
}

// 选择站点
export const selectSiteList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectSiteList',
    method: 'post',
    data: params
  })
}
// 名称模糊搜索变电站简易信息
export const selectSiteSimpleInfoListByName = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectSiteSimpleInfoListByName',
    method: 'post',
    data: params
  })
}
// 选择通信设备
export const selectDtAppEquipmentList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectDtAppEquipmentList',
    method: 'post',
    data: params
  })
}
// 选择电源设备
export const selectDtAppEquipmentPowerList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectDtAppEquipmentPowerList',
    method: 'post',
    data: params
  })
}
// 选择光缆设备
export const selectOpticalList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectOpticalList',
    method: 'post',
    data: params
  })
}
// 路由器获取列表
export const queryRoutersGetTask = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/queryRoutersGetTask',
    method: 'post',
    data: params
  })
}
// 新增路由接口
export const insertRouter = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/insertRouter',
    method: 'post',
    data: params
  })
}
export const routerSelectList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/generic/selectList',
    method: 'post',
    data: params
  })
}
// 新增业务接口
export const insertRouterBuz = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/insertRouterBuz',
    method: 'post',
    data: params
  })
}
// 更改业务或者路由的状态
export const updateServicestate = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/updateServicestate',
    method: 'post',
    data: params
  })
}
// 路由巡视信息
export const queryRouter = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/queryRouter',
    method: 'post',
    data: params
  })
}
//  业务巡视信息
export const queryRouterBuz = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/queryRouterBuz',
    method: 'post',
    data: params
  })
}
export const updateRouterBuz = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/router/updateRouterBuz',
    method: 'post',
    data: params
  })
}
// 通信检修app

// 首页工单进度监控
export const getProgressCount = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/taskProgressCount',
    method: 'post',
    data: params
  })
}
// 工单列表
export const getList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/list',
    method: 'post',
    data: params
  })
}
// 工单领取
export const getReceiveTask = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/receiveTask',
    method: 'post',
    data: params
  })
}
// 执行工单
export const getTaskList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/updateTask',
    method: 'post',
    data: params
  })
}
// 知识助手
export const getSelectKnow = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/selectKnow',
    method: 'post',
    data: params
  })
}
// 工单详情
export const getDetails= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskjx/details',
    method: 'post',
    data: params
  })
}
// 管理员工单监控列表
export const getTaskListByAdmin= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskMian/taskListByAdmin',
    method: 'post',
    data: params
  })
}
//待办工单 通信电源列表
export const getPowerList= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskCommPow/list',
    method: 'post',
    data: params
  })
}
// 待办工单 通信电源列表--》新增
export const getPowerAdd= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/taskCommPow/add',
    method: 'post',
    data: params
  })
}
// 通信光缆详情-光缆信息
export const getFiberMsgLineExam= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/opticalcable/fiberMsg_lineExam',
    method: 'post',
    data: params
  })
}
// 通信光缆详情-纤芯信息（未完成）
export const getLineMsgLineExam= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/opticalcable/lineMsg_lineExam',
    method: 'post',
    data: params
  })
}
// 通信光缆详情-纤芯信息（已完成）
export const getLineExamAccomplish= (params) => {
  return api({
    url: '/txksh/kosinManage/rest/api/fibercore/line_exam_accomplish',
    method: 'post',
    data: params
  })
}
// 纤芯完善信息（保存）不一致
export const completeCableInfo = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/fibercore/line_exam_save",
    method: 'post',
    data: params
  })
}
// 临时工单监控 我发起的
export const getTaskListByInitiate = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskMian/taskListByInitiate",
    method: 'post',
    data: params
  })
}
// 临时工单-发起任务-获取审批人列表
export const getApprover = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/getApprover",
    method: 'post',
    data: params
  })
}
// 实物id核对
export const getCheckEntity = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskCommEqu/checkEntity",
    method: 'post',
    data: params
  })
}
// 电源核对
export const getCheckEntityPower = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskCommPow/checkEntity",
    method: 'post',
    data: params
  })
}
// 设备扫码
export const getScanCode = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskCommEqu/scanCode",
    method: 'post',
    data: params
  })
}
// 电源扫码
export const getScanCodePower = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskCommPow/scanCode",
    method: 'post',
    data: params
  })
}
// 待办工单数量
export const getTaskListByTodoNum = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/taskMian/taskListByTodoNum",
    method: 'post',
    data: params
  })
}
// 临时工单审批列表
export const temporaryTaskList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/temporaryTaskList",
    method: 'post',
    data: params
  })
}
// 临时工单审批详情
export const temporaryDetails = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/details",
    method: 'post',
    data: params
  })
}

// 工单审批再次提交时的回显信息
export const  echoPatrolDetails = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/patrolDetails",
    method: 'post',
    data: params
  })
}

// 临时工单撤销/作废
export const withdraw = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/withdraw",
    method: 'post',
    data: params
  })
}
// 工单审批提交
export const submitApproval = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/api/tempTask/approval",
    method: 'post',
    data: params
  })
}
/*********************************运维审批app开始************************************/
// 公用接口
// 获取审批流程信息（印章）
export const getApproveInfo = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/authorize/getApproveInfo',
    method: 'post',
    data: params
  })
}
// 印章审批选择审批人员
export const getApproverUserList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/Seal/getApproverUserList',
    method: 'post',
    data: params
  })
}

// 选择人员
export const getSelectLwOrgList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/authorize/selectLwOrgList',
    method: 'post',
    data: params
  })
}
// 选择工作楼层、机房编号
export const getCodeList = (params) => {
  return api({
    url: '/txksh/kosinManage/rest/approve/generatorRoom/getCodeList',
    method: 'post',
    data: params
  })
}
// 选择班组人员
// 省信通
// 印章使用工单审批
// 工单记录
export const selectWorkLogList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/selectWorkLogList",
    method: 'post',
    data: params
  })
}
// 班组成员/班组负责人
/************通信机房出入工单*************/
// 获取列表
export const selectRoomList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/selectRoomList",
    method: 'post',
    data: params
  })
}
// 机房 发起请求
export const addRoomOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/addRoomOne",
    method: 'post',
    data: params
  })
}
// 机房 获取详情
export const selectRoomOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/selectRoomOne",
    method: 'post',
    data: params
  })
}
// 机房 再次提交
export const updateRoomOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/updateRoomOne",
    method: 'post',
    data: params
  })
}
// 机房 撤销
export const cancel = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/cancel",
    method: 'post',
    data: params
  })
}
//
// 通信网管出入工单
/**
  * @Description: 获取网管列表
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const selectNetworkManagementList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/selectWebMasterList",
    method: 'post',
    data: params
  })
}
// 网管发起申请
export const addWebMasterOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/addWebMasterOne",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 获取网管详情
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const selectNetworkManagementDetail = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/selectWebMasterOne",
    method: 'post',
    data: params
  })
}
// 再次提交
export const updateWebMasterOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/updateWebMasterOne",
    method: 'post',
    data: params
  })
}
// 撤销
export const cancelWebMaster = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/cancelWebMaster",
    method: 'post',
    data: params
  })
}
// 通信网管巡视巡检工单 （班组负责人）
/**
  * @Description: 获取分配按钮权限
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getAssignButtonPermissions = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/getAssigningAuthority",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 分配巡视巡检
  * @author zhangxia
  * @param {Object}
  * @returns {string}
  */
export const  distributionOrder = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/assignPatrol",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 获取巡视巡检列表(负责人)
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getNetWorkPersonList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/getMonthList",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 获取单月巡视巡检列表
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getSingleMonthPatrolList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/getDayList",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 依据日期获取单月巡视巡检详情内容
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getSingleMonthPatrolDetail = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/getDetailedByDate",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 获取用户列表
  */
 export const  getUserList = (params) => {
   return api({
     url: "/txksh/kosinManage/rest/approve/authorize/selectLwOrgList",
     method: 'post',
     data: params
   })
 }

// 通信网管巡视巡检工单 （班组成员）
 export const  getTaskListByTodoT = (params) => {
   return api({
     url: "/txksh/kosinManage/rest/approve/XSXJ/getBacklogList",
     method: 'post',
     data: params
   })
 }
 /**
   * @Description: 工单详情
   */

export const  getTaskListDetail = (params) => {
   return api({
     url: "/txksh/kosinManage/rest/approve/XSXJ/getDetailedById",
     method: 'post',
     data: params
   })
 }
// 印章使用工单
// 发起
export const  initiateWork = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/Seal/initiateWork",
    method: 'post',
    data: params
  })
}
// 获取列表
export const  getSealList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/Seal/getSealList",
    method: 'post',
    data: params
  })
}
// 获取详情
export const  getSealDetailed = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/Seal/getSealDetailed",
    method: 'post',
    data: params
  })
}
// 印章撤回
export const  cancelSeal = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/Seal/cancelSeal",
    method: 'post',
    data: params
  })
}
// 待办工单——获取列表
export const  selectWaitHandleList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/selectWaitHandleList",
    method: 'post',
    data: params
  })
}
// 待办工单——通信机房——审核
export const  process = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/process",
    method: 'post',
    data: params
  })
}
// 待办工单——通信机房——执行
export const  carryOut = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/carryOut",
    method: 'post',
    data: params
  })
}
// 待办工单——通信网管——审核
export const  processWebMaster = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/processWebMaster",
    method: 'post',
    data: params
  })
}
// 待办工单——通信网管——执行
export const  carryOutWebMaster = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/carryOutWebMaster",
    method: 'post',
    data: params
  })
}

/**
  * @Description: 获取模块列表信息
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getModuleList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/authorize/getModelByUserId",
    method: 'post',
    data: params
  })
}
/**
  * @Description: 批量审批印章审批工单
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  examineSeal = (params) => {
	return api({
		url: "/txksh/kosinManage/rest/approve/Seal/examineSeal",
		method: 'post',
		data: params
	})
}
/**
  * @Description: 印章详情
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
export const  getProvincialSealDetailed = (params) => {
	return api({
		url: "/txksh/kosinManage/rest/approve/Seal/getSealDetailed",
		method: 'post',
		data: params
	})
}
/**
  * @Description: 获取用户信息
  * @author zhangxia
  * @param {string}
  * @returns {string}
  */
 // 获取用户信息
 export const geteaLoginUserInfo = (params) => {
   return api({
     url: '/txksh/kosinManage/rest/approve/authorize/getLoginUserInfo',
     method: 'post',
     data: params
   })
 }
// 通信机房删除
export const  deleteRoomOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/generatorRoom/deleteRoomOne",
    method: 'post',
    data: params
  })
}
// 通信网管删除
export const  deleteWebMasterOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/webMaster/deleteWebMasterOne",
    method: 'post',
    data: params
  })
}
// 印章审批列表删除
export const  deleteSealOne = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/Seal/deleteSealOne",
    method: 'post',
    data: params
  })
}
//网管巡视工单待办
export const selectWGWaitHandleList = (params) => {
	return api({
		url: '/txksh/kosinManage/rest/approve/XSXJ/selectWaitHandleList',
		method: 'post',
		data: params
	})
}
// 网管巡视巡检工单记录
export const selectXSXJWorkLogList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/selectWorkLogList",
    method: 'post',
    data: params
  })
}
//获取巡视巡检监控列表
export const getMonitorList = (params) => {
  return api({
    url: "/txksh/kosinManage/rest/approve/XSXJ/getMonitorList",
    method: 'post',
    data: params
  })
}
/*********************************运维审批app结束************************************/
